#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>

int main()
{
    char ch;
    while ((ch = getchar()) != '#')
    {
        if (ch == '9')
            printf("0");
        else if (ch == 'z')
            printf("a");
        else if (ch == 'Z')
            printf("A");
        else
            printf("%c", ch + 1);
    }
    return 0;
}